from django.contrib import admin

# Register your models here.
from .models import *


class ParentsAdmin(admin.ModelAdmin):
    list_display = ('familyrole', 'uphone', 'user', 'school', 'student')
    search_fields = ('uphone',)
    list_display_links = ('uphone', )
    list_filter = ('user',)


class GrowthAdmin(admin.ModelAdmin):
    list_display = ('monthage', 'gender', 'picture')
    search_fields = ('monthage', 'gender')
    list_display_links = ('monthage',)
    list_filter = ('monthage',)


# class CommendAdmin(admin.ModelAdmin):
#     list_display = ('video', 'like', 'share')
#     search_fields = ('video__title',)
#     list_display_links = ('video',)
#
#
# class ReviewAdmin(admin.ModelAdmin):
#     list_display = ('video', 'parent', 'comment')
#     search_fields = ('video__title',)
#     list_display_links = ('video',)


admin.site.site_title = "测评"  # 网页结尾
admin.site.site_header = "抱抱熊测评管理系统"  # 页面标题
admin.site.index_title = "抱抱熊"  # 网页开头

admin.site.register(Parents, ParentsAdmin)
admin.site.register(Growth, GrowthAdmin)
# admin.site.register(Commend, CommendAdmin)
# admin.site.register(Review, ReviewAdmin)